﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Inscription.aspx.cs" Inherits="WebInterface.Inscription" Title="Inscription" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>DotConference</title>
    <style type="text/css">
    .control
    {
    	width:220px;
    	position:absolute;
    	left:100px
    }
    
    .validator
    {
    	width:220px;
    	position:absolute;
    	left:350px
    }
</style>
</head>
<body>
    <form id="form1" runat="server">

    <h2 style="text-align:left">Insription</h2>
    <asp:RadioButtonList ID="RadioTitre" runat="server" 
        RepeatDirection="Horizontal" ValidationGroup="Insription">
        <asp:ListItem Selected="True">M.</asp:ListItem>
        <asp:ListItem>Mme</asp:ListItem>
        <asp:ListItem>Mlle</asp:ListItem>
        <asp:ListItem>Dr</asp:ListItem>
        <asp:ListItem>Me</asp:ListItem>
    </asp:RadioButtonList>
    
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidatorIdentifiant" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextIdentifiant"></asp:RequiredFieldValidator>
    <asp:Label ID="LblErreurIdentifiant" runat="server" 
        Text="L'identifiant est déjà utilisé" CssClass="validator" ForeColor="Red" 
        Visible="False"></asp:Label>
    <asp:Label ID="LblIdentifiant" runat="server" Text="Identifiant: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextIdentifiant" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
    
     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextMotDePasse"></asp:RequiredFieldValidator>
    <asp:Label ID="LblMotDePasse" runat="server" Text="Mot de passe: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextMotDePasse" runat="server" 
        ValidationGroup="Insription" TextMode="Password"></asp:TextBox>
    
<br />
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextNom"></asp:RequiredFieldValidator>
    <asp:Label ID="LblNom" runat="server" Text="Nom: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextNom" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextPrenom"></asp:RequiredFieldValidator>
    <asp:Label ID="LblPrenom" runat="server" Text="Prénom: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextPrenom" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextCourriel"></asp:RequiredFieldValidator>
    <asp:Label ID="LblCourriel" runat="server" Text="Courriel: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextCourriel" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextAdresse"></asp:RequiredFieldValidator>
    <asp:Label ID="LblAdresse" runat="server" Text="Adresse: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextAdresse" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
    
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
        CssClass="validator" runat="server" ErrorMessage="Champs obligatoire" 
        ControlToValidate="TextTelephone"></asp:RequiredFieldValidator>
    <asp:Label ID="LblTelephone" runat="server" Text="Téléphone: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextTelephone" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
    
    
    <asp:Label ID="LblOrganisme" runat="server" Text="Organisme: "></asp:Label>
    <asp:TextBox CssClass="control" ID="TextOrganisme" runat="server" 
        ValidationGroup="Insription"></asp:TextBox><br />
  
    
    <asp:Label ID="LblStatut" runat="server" Text="Statut: "></asp:Label>
    <asp:DropDownList CssClass="control" ID="ListStatut" runat="server">
        <asp:ListItem Value="Etudiant">Étudiant</asp:ListItem>
        <asp:ListItem Value="Academique">Académique</asp:ListItem>
        <asp:ListItem Value="Industriel">Industriel</asp:ListItem>
    </asp:DropDownList><br />
    <asp:Label ID="LblType" runat="server" Text="Type: "></asp:Label>
    <asp:DropDownList CssClass="control" ID="ListType" runat="server">
       
    </asp:DropDownList>
    <br />
    <asp:Label ID="LblErreurCreation" runat="server" ForeColor="Red" Text="Échec dans la création du participant" Visible="false"></asp:Label>
    <br />
    <asp:Button style="width:150px; position:absolute; left:50px;" ID="btnInscrire" 
        runat="server" Text="S'inscrire" onclick="BtnInscriptionClick" />
        

    </form>
</body>
</html>
